home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 January
/
PCWorld_2007-01_cd.bin
/
v cisle
/
widget
/
widget.exe
/
Universal_Converter.widget
/
Converter.widget
/
Contents
/
Converter.kon
Wrap
Extensible Markup Language
|
2006-10-27
|
8KB
|
292 lines
<?xml version="1.0" encoding="UTF-8"?>
<widget>
<debug>off</debug>
<window>
<name>Converter_widget</name>
<width>435</width>
<height>365</height>
<visible>true</visible>
<image src="Resources/Top.png" name="top">
<opacity>255</opacity>
<vOffset>5</vOffset>
<width>430</width>
</image>
<!--<image src="Resources/Mid.png" name="mid">
<opacity>255</opacity>
<vOffset>23</vOffset>
<width>430</width>
<height>77</height>
</image>
<image src="Resources/Base1.png" name="base">
<opacity>255</opacity>
<vOffset>100</vOffset>
<width>430</width>
</image>-->
<image src="Resources/bg.png" name="bg">
<opacity>255</opacity>
<vOffset>23</vOffset>
<height>114</height>
<width>430</width>
</image>
<image src="Resources/Reflection.png">
<vOffset>10</vOffset>
<hOffset>16</hOffset>
<width>398</width>
</image>
</window>
<text>
<data>Conversion Calculator</data>
<style>bold</style>
<color>#FFFFFF</color>
<size>16</size>
<vOffset>35</vOffset>
<hOffset>25</hOffset>
</text>
<image name="arrow" src="Resources/arrow.png">
<vOffset>30</vOffset>
<hOffset>208</hOffset>
<opacity>255</opacity>
<hRegistrationPoint>8</hRegistrationPoint>
<vRegistrationPoint>9</vRegistrationPoint>
<onMouseDown>fn_toggle(flagInt++);</onMouseDown>
</image>
<image name="gear" src="Resources/GEAR.gif">
<vOffset>10</vOffset>
<hOffset>300</hOffset>
<opacity>160</opacity>
</image>
<image src="Resources/close.png">
<name>close</name>
<vOffset>16</vOffset>
<hOffset>396</hOffset>
<tooltip>Close</tooltip>
<tracking>rectangle</tracking>
<opacity>100</opacity>
<onMouseExit>close.opacity=90</onMouseExit>
<onMouseEnter>close.opacity=160</onMouseEnter>
<onMouseDown>
closeWidget();
</onMouseDown>
</image>
<text name="convTxt">
<data>Convert :</data>
<style>bold</style>
<color>#FFFFFF</color>
<size>12</size>
<vOffset>65</vOffset>
<hOffset>25</hOffset>
</text>
<textarea>
<name>unitsTB</name>
<bgColor>#FFFFFF</bgColor>
<bgOpacity>255</bgOpacity>
<font>sans,verdana, arial</font>
<size>12</size>
<color>#333333</color>
<columns>10</columns>
<lines>1</lines>
<vOffset>54</vOffset>
<hOffset>80</hOffset>
<editable>false</editable>
<onLoseFocus>foc1.opacity=0</onLoseFocus>
</textarea>
<image name="convDD" src="Resources/dropdown.png">
<vOffset>53</vOffset>
<hOffset>190</hOffset>
<opacity>200</opacity>
<height>18</height>
<onMouseDown>
foc1.opacity = 255;
unitsTB.focus();
convItems = new Array();
var convList = ["Area","Angular", "Bits and bytes", "Distance", "Energy", "Power", "Pressure", "Speed", "Temperature", "Time", "Volume", "Weight", "Illuminance", "Flow rate[volume]", "Radix (base N)"];
for(i=0;i<convList.length;i++) {
convItems[i] = new MenuItem;
convItems[i].title = convList[i];
convItems[i].enabled = true;
convItems[i].onSelect = "unitsTB.data='"+convList[i]+"';unitVal="+i+";fn_populate1();";
if(convList[i]==unitsTB.data){
convItems[i].checked = true;
}
}
popupMenu( convItems, convDD.hOffset-110, convDD.vOffset + 16 );
</onMouseDown>
</image>
<image name="foc1" src="Resources/focusring.png">
<vOffset>46</vOffset>
<hOffset>18</hOffset>
<opacity>0</opacity>
<width>195</width>
<colorize>#00DD00</colorize>
<hslAdjustment>0,40,40</hslAdjustment>
</image>
<textarea>
<name>convertTB</name>
<bgColor>#FFFFFF</bgColor>
<bgOpacity>255</bgOpacity>
<font>sans,verdana, arial</font>
<size>12</size>
<color>#333333</color>
<columns>15</columns>
<lines>1</lines>
<vOffset>54</vOffset>
<hOffset>225</hOffset>
<onGainFocus>foc2.opacity=255</onGainFocus>
<onLoseFocus>foc2.opacity=0</onLoseFocus>
<onKeyPress>
if ( system.event.keyString == 'Return' || system.event.keyString == 'Enter' || system.event.keyString == 'Tab' )
{
fn_doConvert();
}
</onKeyPress>
</textarea>
<image name="foc2" src="Resources/focusring.png">
<vOffset>46</vOffset>
<hOffset>215</hOffset>
<opacity>0</opacity>
<width>168</width>
<colorize>#00DD00</colorize>
<hslAdjustment>0,40,40</hslAdjustment>
</image>
<text name="fromTxt">
<data>From :</data>
<style>bold</style>
<color>#FFFFFF</color>
<size>12</size>
<vOffset>95</vOffset>
<hOffset>25</hOffset>
</text>
<textarea>
<name>fromTB</name>
<bgColor>#FFFFFF</bgColor>
<bgOpacity>255</bgOpacity>
<font>sans,verdana, arial</font>
<size>12</size>
<color>#333333</color>
<columns>10</columns>
<lines>1</lines>
<vOffset>84</vOffset>
<hOffset>80</hOffset>
<editable>false</editable>
<onLoseFocus>foc3.opacity=0</onLoseFocus>
</textarea>
<image name="fromDD" src="Resources/dropdown.png">
<vOffset>83</vOffset>
<hOffset>190</hOffset>
<opacity>200</opacity>
<height>18</height>
<onMouseDown>
foc3.opacity = 255;
fromTB.focus();
for(i=0;i<fromItems.length;i++) {
fromItems[i].checked = (fromTB.data == fromItems[i].title)?true:false;
}
popupMenu( fromItems, fromDD.hOffset-110, fromDD.vOffset + 16 );
</onMouseDown>
</image>
<image name="foc3" src="Resources/focusring.png">
<vOffset>76</vOffset>
<hOffset>18</hOffset>
<opacity>0</opacity>
<width>195</width>
<colorize>#00DD00</colorize>
<hslAdjustment>0,40,40</hslAdjustment>
</image>
<text name="toTxt">
<data>To :</data>
<style>bold</style>
<color>#FFFFFF</color>
<size>12</size>
<vOffset>94</vOffset>
<hOffset>225</hOffset>
</text>
<textarea>
<name>toTB</name>
<bgColor>#FFFFFF</bgColor>
<bgOpacity>255</bgOpacity>
<font>sans,verdana, arial</font>
<size>12</size>
<color>#333333</color>
<columns>10</columns>
<lines>1</lines>
<vOffset>84</vOffset>
<hOffset>251</hOffset>
<editable>false</editable>
<onLoseFocus>foc4.opacity=0</onLoseFocus>
</textarea>
<image name="toDD" src="Resources/dropdown.png">
<vOffset>83</vOffset>
<hOffset>361</hOffset>
<opacity>200</opacity>
<height>18</height>
<onMouseDown>
foc4.opacity = 255;
toTB.focus();
for(i=0;i<toItems.length;i++) {
(toItems[i])?toItems[i].checked = (toTB.data == toItems[i].title)?true:false:"";
}
popupMenu( toItems, toDD.hOffset-110, toDD.vOffset + 16 );
</onMouseDown>
</image>
<image name="foc4" src="Resources/focusring.png">
<vOffset>76</vOffset>
<hOffset>215</hOffset>
<opacity>0</opacity>
<width>168</width>
<colorize>#00DD00</colorize>
<hslAdjustment>0,40,40</hslAdjustment>
</image>
<image name="go" src="Resources/go.png">
<vOffset>82</vOffset>
<hOffset>382</hOffset>
<tracking>rectangle</tracking>
<onMouseDown>
foc5.opacity = 255;
fn_doConvert();
convTB.focus();
</onMouseDown>
<onMouseUp>
foc5.opacity = 0;
</onMouseUp>
</image>
<image name="foc5" src="Resources/foc5.png">
<vOffset>77</vOffset>
<hOffset>374</hOffset>
<opacity>0</opacity>
<colorize>#00FF00</colorize>
<hslAdjustment>5,20,20</hslAdjustment>
</image>
<image name="foc6" src="Resources/focusring.png">
<vOffset>100</vOffset>
<hOffset>74</hOffset>
<opacity>0</opacity>
<width>300</width>
<colorize>#00DD00</colorize>
<hslAdjustment>0,40,40</hslAdjustment>
</image>
<preference name="themecolor">
<title>Theme Color:</title>
<type>color</type>
<minLength>0</minLength>
<maxLength>250</maxLength>
<ticks>20</ticks>
<defaultValue>100</defaultValue>
<description>Please choose a color for your Stop Watch to display.</description>
</preference>
<preference name="changeButton">
<title>Apply to Buttons also.</title>
<type>checkbox</type>
<defaultValue>0</defaultValue>
<description>Check this box to apply the color for dropdown buttons.</description>
</preference>
<action trigger="onPreferencesChanged">
fn_updateTheme();
</action>
<about-box>
<image>Resources/About.png</image>
</about-box>
<action trigger="onLoad">
include("Resources/converter.js");
fn_updateTheme();
</action>
</widget>